package oop5;

public class BlueToothEarPhone implements BlueTooth {
	private String brand;

	public BlueToothEarPhone(String b) {
		brand = b;
	}

	@Override
	public void connect() {
		System.out.println(brand + "连接上了手机。。。开始工作了");
	}

	@Override
	public void disconnect() {
		System.out.println(brand + "断开了和手机的连接");
	}

	// 能重写default方法transfer??
	@Override
	public void transfer() {
		System.out.println("开始发送和接受声音。。。");
	}

	public static void main(String[] args) {
		BlueTooth b = new BlueToothEarPhone("AirPods");
		b.connect();
		b.transfer();
		b.disconnect();
	}
}
